Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
This PR implement a new setting for the MultiAuthenticator class: username_prefix.
When set, only this prefix will be used across all Authenticators configured.
It can be useful when there's a need to use an alternate login method while keeping the same username.
INFO: the service_name feature is deprecated in favor of subclassing authenticator classes and setting the
login_service
property. It's more verbose however it makes the intention clearer. It will be removed in a future release.WARNING: This can have security implications !!!
If two different users, using each a different login service have the same username returned (e.g. User1 on GitLab gets UserXYZ and User2 on GitHub also get UserXYZ, then they will have access to the same account on the JupyterHub deployment.
Issue ticket number and link
Closes #27